export interface EditDirItem {
  value: string;
  label: string;
}

export const EditDirOptions = {
  add: {
    value: 'add',
    label: '新增'
  },
  edit: {
    value: 'edit',
    label: '编辑'
  },
  look: {
    value: 'look',
    label: '查看'
  }
}

export function optionsToList<T>(options: { [find: string]: T }): T[] {
  return Object.values(options) as T[]
}


export const imgTypeOptions =['.jpg','.jpeg','.png']
export const zipTypeOptions =['.zip','.rar','.7z']
